<template>
  <div>
    <el-form
      :model="detailForm"
      :rules="rules"
      ref="ruleForm"
      :label-width="formLabelWidth"
    >
      <!-- 基本信息 -->
      <h5 class="titleText">基本信息</h5>
      <el-row type="flex">
        <el-col :span="6">
          <el-form-item
            label="所属调管调度机构:"
            size="mini"
            prop="regulationOrgId"
          >
            <el-select
              v-model="detailForm.regulationOrgId"
              placeholder="请选择"
              :disabled="operate === 'edit'"
              @change="regulationOrgIdChange"
            >
              <el-option
                v-for="item in dispatchLists.filter(
                  (item) => item.label !== '全部'
                )"
                :key="item.value"
                :label="item.label"
                :value="item.value"
              >
              </el-option>
            </el-select>
          </el-form-item>
        </el-col>
        <el-col :span="6">
          <!-- <el-form-item label="场站名称:" size="mini" prop="stationName"> -->
          <!-- <el-input
              v-model.trim="detailForm.stationName"
              autocomplete="off"
              size="mini"
              maxlength="40"
              placeholder="输入场站名称"
              clearable
              :disabled="operate === 'edit'"
            ></el-input> -->
          <el-form-item
            ref="formItem"
            label="场站名称"
            size="mini"
            prop="stationName"
          >
            <el-select
              v-model="detailForm.stationName"
              filterable
              :filter-method="PinyinMatchFun"
              placeholder="请选择"
              size="mini"
              :style="{ width: '100%' }"
              clearable
              :isDisabled="operate === 'edit'"
              :popper-append-to-body="false"
              @change="inputChange"
              :disabled="operate === 'edit'"
            >
              <el-option
                v-for="(item, index) in queryInputList"
                :key="index"
                :label="item.label"
                :value="item.label"
              >
              </el-option>
            </el-select>
          </el-form-item>
          <!-- <FuzzyQueryInput ref="FuzzyQueryInput"  :rules="[rules.stationName[0]]"  :isDisabled="operate === 'edit'" width="100%" :api="queryStationNameList" /> -->

          <!-- </el-form-item> -->
        </el-col>
        <el-col :span="6">
          <!-- 升压站接入等级 -->
          <el-form-item
            label="升压站接入等级:"
            size="mini"
            prop="voltageLevelCode"
          >
            <el-select
              v-model="detailForm.voltageLevelCode"
              :popper-append-to-body="false"
              size="mini"
              placeholder="请选择"
              disabled
            >
              <el-option
                v-for="item in voltageLevelLists.filter(
                  (item) => item.label !== '全部'
                )"
                :key="item.value"
                :label="item.label"
                :value="item.value"
              >
              </el-option>
            </el-select>
          </el-form-item>
        </el-col>
        <el-col :span="6">
          <el-form-item label="产权单位:" size="mini">
            <SelectAdd
              :labelslist="ownersList"
              label="ownersName"
              ref="owner"
              val="ownersId"
              :api="getInsertOwnersInfo"
              query="ownersId"
              order="产权单位"
              :formVla="detailForm.ownersId"
              @getQueryStationList="getOwnersList"
              :delApi="deleteOwnersInfo"
              disabledSelect
            ></SelectAdd>
            <!-- <el-input
              v-model.trim="detailForm.ownersName"
              autocomplete="off"
              size="mini"
              maxlength="40"
              placeholder="输入产权单位"
              clearable
            ></el-input> -->
          </el-form-item>
        </el-col>
      </el-row>
      <h5 class="titleText">整站投产情况</h5>
      <el-row type="flex">
        <el-col :span="6">
          <!-- 是否已整站投产 -->
          <el-form-item label="是否已整站投产:" size="mini" prop="isProduction">
            <el-select
              v-model="detailForm.isProduction"
              size="mini"
              placeholder="请选择"
              disabled
            >
              <el-option
                v-for="item in isYes"
                :key="item.value"
                :label="item.label"
                :value="item.value"
              >
              </el-option>
            </el-select>
          </el-form-item>
        </el-col>
        <el-col :span="6">
          <el-form-item label="整站容量:" size="mini">
            <el-input
              v-model.trim="detailForm.stationCap"
              autocomplete="off"
              type="number"
              size="mini"
              oninput="value= value.length>40?value.slice(0,40):value"
              style="width: calc(100% - 28px)"
              clearable
              disabled
            ></el-input>
            <span class="unitClass">MW</span>
          </el-form-item>
        </el-col>
        <el-col :span="6">
          <el-form-item label="整站投产时间:" size="mini">
            <el-date-picker
              v-model="detailForm.productionTime"
              type="date"
              :value-format="'yyyy-MM-dd'"
              disabled
            >
            </el-date-picker>
          </el-form-item>
        </el-col>
      </el-row>
      <!-- <h5 class="titleText">主动测试</h5>
      <el-row type="flex">
        <el-col :span="6">
          <el-form-item label="主动测试次数:" size="mini">
            <el-input
              v-model.trim="detailForm.activeTestNum"
              autocomplete="off"
              type="number"
              size="mini"
              oninput="value= value.length>40?value.slice(0,40):value"
              style="width: calc(100% - 28px)"
              clearable
              disabled
            ></el-input>
          </el-form-item>
        </el-col>
        <el-col :span="6">
          <el-form-item label="合格次数:" size="mini">
            <el-input
              v-model.trim="detailForm.qualifiedNum"
              autocomplete="off"
              type="number"
              size="mini"
              oninput="value= value.length>40?value.slice(0,40):value"
              style="width: calc(100% - 28px)"
              clearable
              disabled
            ></el-input>
          </el-form-item>
        </el-col>
        <el-col :span="6">
          <el-form-item label="合格率:" size="mini">
            <el-input
              v-model.trim="detailForm.qualifiedRatio"
              autocomplete="off"
              type="number"
              size="mini"
              oninput="value= value.length>40?value.slice(0,40):value"
              style="width: calc(100% - 28px)"
              clearable
              disabled
            ></el-input>
            <span class="unitClass">%</span>
          </el-form-item>
        </el-col>
      </el-row> -->
      <h5 class="titleText">文件上传</h5>
      <el-row>

        <el-col :span="6">
          <el-form-item label="测试日期:" size="mini" prop="testDate">
            <el-date-picker
              v-model="detailForm.testDate"
              type="date"
              value-format="yyyy-MM-dd"
              placeholder="选择日期"
              :disabled="operate === 'edit'"
            >
            </el-date-picker>
          </el-form-item>
        </el-col>


        <el-col :span="6">
          <el-form-item label="测试序号:" size="mini" prop="testNumber">
            <el-input
            :disabled="operate === 'edit'"
              v-model.trim="detailForm.testNumber"
              autocomplete="off"
              type="number"
              size="mini"
              oninput="value= value.length>40?value.slice(0,40):value"
              style="width: calc(100% - 28px)"
              clearable
            ></el-input>
          </el-form-item>
        </el-col>

        <el-col :span="6">
          <el-form-item label="试验方案:" size="mini">
            <el-select
              :popper-append-to-body="false"
              v-model="detailForm.relationFileId"
              size="mini"
              placeholder="请选择"
              @visible-change="queryStationAuditedFiles"
            >
              <el-option
                v-for="item in FilesList"
                :key="item.value"
                :label="item.label"
                :value="item.value"
              >
              </el-option>
            </el-select>
          </el-form-item>
        </el-col>


        
        <el-col :span="9">
          <el-form-item
            label="快速频率响应试验结果:"
            :label-width="formLabelWidth"
            size="mini"
          >
          <el-button size="mini"  v-show="!detailForm.relationFileId" disabled>选择文件</el-button>

            <el-upload
              ref="upload"
              action="#"
              class="upload-demo"
              :on-change="onChange2"
              :multiple="false"
              :limit="2"
              :on-exceed="handleExceed"
              :file-list="fileList2"
              :http-request="uploadHttpReq"
              :auto-upload="false"
              :show-file-list="false"
            >
              <div>
                <el-button size="mini"  v-show="detailForm.relationFileId">选择文件</el-button>
              </div>
            </el-upload>
            <el-tooltip
              class="item"
              effect="dark"
              :content="detailForm.regulationTestReport"
              placement="top"
              :disabled="detailForm.regulationTestReport ? false : true"
            >
              <el-input
                v-model.trim="detailForm.regulationTestReport"
                clearable
                style="width: 77%"
                placeholder="仅支持pdf、excel格式的文件"
                disabled
              ></el-input>
            </el-tooltip>
          </el-form-item>
        </el-col>
        <el-col :span="6">
          <el-form-item label="上传时间:" size="mini">
            <el-date-picker
              v-model="detailForm.regulationTime2"
              type="datetime"
              placeholder="选择日期"
              :value-format="'yyyy-MM-dd HH:mm:ss'"
              disabled
            >
            </el-date-picker>
          </el-form-item>
        </el-col>
        <el-col :span="6">
          <el-form-item label="审核通过:" size="mini">
            <el-select
              :popper-append-to-body="false"
              v-model="detailForm.reportIsAudited"
              size="mini"
              placeholder="请选择"
              @change="auditChange1(detailForm.reportIsAudited)"
              :disabled="!detailForm.regulationTestReport"
            >
              <el-option
                v-for="item in isYes"
                :key="item.value"
                :label="item.label"
                :value="item.value"
              >
              </el-option>
            </el-select>
          </el-form-item>
        </el-col>
        <el-col :span="6">
          <el-form-item label="审核时间:" size="mini">
            <el-date-picker
              v-model="detailForm.reportAuditTime"
              type="datetime"
              placeholder="选择日期"
              value-format="yyyy-MM-dd HH:mm:ss"
              disabled
            >
            </el-date-picker>
          </el-form-item>
        </el-col>

        <el-col :span="6">
          <el-form-item label="是否测试合格:" size="mini">
            <el-select
              v-model="detailForm.isTestPassed"
              placeholder="请选择"
              :popper-append-to-body="false"
              :disabled="!detailForm.reportIsAudited"
            >
              <!-- <el-option
                v-for="item in isTestPassedList"
                :key="item.value"
                :label="item.label"
                :value="item.value"
                :disabled="item.disabled"
              > -->

              <el-option :disabled="this.detailForm.reportIsAudited === '1'?false:true"
                             label="是" :key="1"
                             :value="1"></el-option>

              <el-option label="否" :value="0" :key="0"></el-option>
              <!-- </el-option> -->
            </el-select>
          </el-form-item>
        </el-col>

      

      </el-row>

      
      <!-- <el-row>
       
      </el-row> -->
      <!-- <el-row>
        <el-col :span="9">
          <el-form-item label="一次调频测试报告:" :label-width="formLabelWidth" size="mini">
            <el-upload ref="upload" action="#" class="upload-demo" :on-change="onChange3" :multiple="false" :limit="2"
              :on-exceed="handleExceed" :file-list="fileList3" :http-request="uploadHttpReq" :auto-upload="false"
              :show-file-list="false">
              <div>
                <el-button size="mini">选择文件</el-button>
              </div>
            </el-upload>
            <el-tooltip class="item" effect="dark" :content="detailForm.regulationTestReport" placement="top"
              :disabled="detailForm.regulationTestReport ? false : true">
              <el-input v-model.trim="detailForm.regulationTestReport" style="width: 77%" placeholder="仅支持pdf、excel格式的文件"
                clearable disabled></el-input>
            </el-tooltip>
          </el-form-item>
        </el-col>
        <el-col :span="5">
          <el-form-item label="上传时间:" size="mini">
            <el-date-picker v-model="detailForm.regulationTime3" type="datetime" placeholder="选择日期"
              :value-format="'yyyy-MM-dd HH:mm:ss'" disabled>
            </el-date-picker>
          </el-form-item>
        </el-col>
        <el-col :span="5">
          <el-form-item label="审核通过:" size="mini">
            <el-select v-model="detailForm.reportIsAudited" :popper-append-to-body="false" size="mini" placeholder="请选择"
              @change="auditChange2" :disabled="!detailForm.regulationTestReport">
              <el-option v-for="item in isYes" :key="item.value" :label="item.label" :value="item.value">
              </el-option>
            </el-select>
          </el-form-item>
        </el-col>
        <el-col :span="5">
          <el-form-item label="审核时间:" size="mini">
            <el-date-picker v-model="detailForm.reportAuditTime" type="datetime" placeholder="选择日期"
              :value-format="'yyyy-MM-dd HH:mm:ss'" disabled>
            </el-date-picker>
          </el-form-item>
        </el-col>
      </el-row> -->
      <!-- <el-row>
        <el-col :span="12">
          <el-form-item
            label="一次调频实验方案:"
            :label-width="formLabelWidth"
            size="mini"
          >
            <el-upload
              ref="upload"
              action="#"
              class="upload-demo"
              :on-change="onChange2"
              :multiple="false"
              :limit="2"
              :on-exceed="handleExceed"
              :file-list="fileList2"
              :http-request="uploadHttpReq"
              :auto-upload="false"
              :show-file-list="false"
            >
              <div>
                <el-button size="mini">选择文件</el-button>
              </div>
            </el-upload>
            <el-tooltip
              class="item"
              effect="dark"
              :content="detailForm.regulationTestPlan"
              placement="top"
              :disabled="detailForm.regulationTestPlan ? false : true"
            >
              <el-input
                v-model.trim="detailForm.regulationTestPlan"
                clearable
                style="width: 65%"
                placeholder="仅支持pdf、excel格式的文件"
                disabled
              ></el-input>
            </el-tooltip>
          </el-form-item>
        </el-col>
        <el-col :span="8">
          <el-form-item label="上传时间:" size="mini">
            <el-date-picker
              v-model="detailForm.regulationTime2"
              type="datetime"
              placeholder="选择日期"
              :value-format="'yyyy-MM-dd HH:mm:ss'"
              disabled
            >
            </el-date-picker>
          </el-form-item>
        </el-col>
      </el-row>
      <el-row>
        <el-col :span="12">
          <el-form-item
            label="一次调频测试报告:"
            :label-width="formLabelWidth"
            size="mini"
          >
            <el-upload
              ref="upload"
              action="#"
              class="upload-demo"
              :on-change="onChange3"
              :multiple="false"
              :limit="2"
              :on-exceed="handleExceed"
              :file-list="fileList3"
              :http-request="uploadHttpReq"
              :auto-upload="false"
              :show-file-list="false"
            >
              <div>
                <el-button size="mini">选择文件</el-button>
              </div>
            </el-upload>
            <el-tooltip
              class="item"
              effect="dark"
              :content="detailForm.regulationTestReport"
              placement="top"
              :disabled="detailForm.regulationTestReport ? false : true"
            >
              <el-input
                v-model.trim="detailForm.regulationTestReport"
                style="width: 65%"
                placeholder="仅支持pdf、excel格式的文件"
                clearable
                disabled
              ></el-input>
            </el-tooltip>
          </el-form-item>
        </el-col>
        <el-col :span="8">
          <el-form-item label="上传时间:" size="mini">
            <el-date-picker
              v-model="detailForm.regulationTime3"
              type="datetime"
              placeholder="选择日期"
              :value-format="'yyyy-MM-dd HH:mm:ss'"
              disabled
            >
            </el-date-picker>
          </el-form-item>
        </el-col>
      </el-row> -->
      <!-- <el-row type="flex">
        <el-col :span="12">
          <el-form-item
            label="一次调频定值单:"
            :label-width="formLabelWidth"
            size="mini"
          >
            <el-upload
              ref="upload1"
              action="#"
              class="upload-demo"
              :on-change="onChange1"
              :before-upload="beforeAvatarUpload"
              :multiple="false"
              :limit="2"
              :on-exceed="handleExceed"
              :file-list="fileList1"
              :http-request="uploadHttpReq"
              :auto-upload="false"
              :show-file-list="false"
              :disabled="flagUpload"
            >
              <div>
                <el-button @click="regulationReportFormChange" size="mini"
                  >选择文件</el-button
                >
              </div>
            </el-upload>
            <el-tooltip
              class="item"
              effect="dark"
              :content="detailForm.regulationReportForm"
              placement="top"
              :disabled="detailForm.regulationReportForm ? false : true"
            >
              <el-input
                v-model.trim="detailForm.regulationReportForm"
                style="width: 65%"
                placeholder="仅支持pdf、excel格式的文件"
                disabled
                clearable
              ></el-input>
            </el-tooltip>
            <p
              style="font-size: 12px !important; color: red"
              v-if="detailForm.isDelay === '1'"
            >
              (已滞后两周,请尽快上传)
            </p>
          </el-form-item>
        </el-col>
        <el-col :span="8">
          <el-form-item label="上传时间:" size="mini">
            <el-date-picker
              v-model="detailForm.regulationTime1"
              type="datetime"
              placeholder="选择日期"
              :value-format="'yyyy-MM-dd HH:mm:ss'"
              disabled
            >
            </el-date-picker>
          </el-form-item>
        </el-col>
      </el-row> -->
      <!-- <el-row>
        <el-col :span="12">
          <el-form-item
            label="惯量响应方案:"
            :label-width="formLabelWidth"
            size="mini"
          >
            <el-upload
              ref="upload"
              action="#"
              class="upload-demo"
              :on-change="onChange4"
              :multiple="false"
              :limit="2"
              :on-exceed="handleExceed"
              :file-list="fileList4"
              :http-request="uploadHttpReq"
              :auto-upload="false"
              :show-file-list="false"
            >
              <div>
                <el-button size="mini">选择文件</el-button>
              </div>
            </el-upload>
            <el-tooltip
              class="item"
              effect="dark"
              :content="detailForm.responsePlan"
              placement="top"
              :disabled="detailForm.responsePlan ? false : true"
            >
              <el-input
                v-model.trim="detailForm.responsePlan"
                style="width: 65%"
                placeholder="仅支持pdf、excel格式的文件"
                disabled
                clearable
              ></el-input>
            </el-tooltip>
          </el-form-item>
        </el-col>
        <el-col :span="8">
          <el-form-item label="上传时间:" size="mini">
            <el-date-picker
              v-model="detailForm.regulationTime4"
              type="datetime"
              placeholder="选择日期"
              :value-format="'yyyy-MM-dd HH:mm:ss'"
              disabled
            >
            </el-date-picker>
          </el-form-item>
        </el-col>
      </el-row> -->
      <!-- <el-row>
        <el-col :span="12">
          <el-form-item
            label="惯量响应报告:"
            :label-width="formLabelWidth"
            size="mini"
          >
            <el-upload
              ref="upload"
              action="#"
              class="upload-demo"
              :on-change="onChange5"
              :multiple="false"
              :limit="2"
              :on-exceed="handleExceed"
              :file-list="fileList5"
              :http-request="uploadHttpReq"
              :auto-upload="false"
              :show-file-list="false"
            >
              <div>
                <el-button size="mini">选择文件</el-button>
              </div>
            </el-upload>
            <el-tooltip
              class="item"
              effect="dark"
              :content="detailForm.responseReport"
              placement="top"
              :disabled="detailForm.responseReport ? false : true"
            >
              <el-input
                v-model.trim="detailForm.responseReport"
                style="width: 65%"
                placeholder="仅支持pdf、excel格式的文件"
                disabled
                clearable
              ></el-input>
            </el-tooltip>
          </el-form-item>
        </el-col>
        <el-col :span="8">
          <el-form-item label="上传时间:" size="mini">
            <el-date-picker
              v-model="detailForm.regulationTime5"
              type="datetime"
              placeholder="选择日期"
              :value-format="'yyyy-MM-dd HH:mm:ss'"
              disabled
            >
            </el-date-picker>
          </el-form-item>
        </el-col>
      </el-row> -->
      <!-- <el-row type="flex">
        <el-col :span="12">
          <el-form-item label="一次调频定值单:" size="mini">
            <el-upload
              ref="upload"
              action="#"
              class="upload-demo"
              :on-change="onChange1"
              :before-upload="beforeUpload"
              multiple
              :limit="5"
              :on-exceed="handleExceed"
              :file-list="fileList1"
              :http-request="uploadFile"
              :auto-upload="false"
              :show-file-list="false"
            >
              <div>
                <el-button size="mini">选择文件</el-button>
              </div>
            </el-upload>
            <el-tooltip
              class="item"
              effect="dark"
              :content="detailForm.regulationReportForm"
              placement="top"
              :disabled="detailForm.regulationReportForm ? false : true"
            >
              <el-input
                v-model.trim="detailForm.regulationReportForm"
                style="width: 55%"
                placeholder="仅支持pdf、excel格式的文件"
                disabled
                clearable
              ></el-input>
            </el-tooltip>
          </el-form-item>
        </el-col>
        <el-col :span="12">
          <el-form-item label="一次调频实验方案:" size="mini">
            <el-upload
              ref="upload"
              action="#"
              class="upload-demo"
              :on-change="onChange2"
              :before-upload="beforeUpload"
              multiple
              :limit="5"
              :on-exceed="handleExceed"
              :file-list="fileList2"
              :http-request="uploadFile"
              :auto-upload="false"
              :show-file-list="false"
            >
              <div>
                <el-button size="mini">选择文件</el-button>
              </div>
            </el-upload>
            <el-tooltip
              class="item"
              effect="dark"
              :content="detailForm.regulationTestPlan"
              placement="top"
              :disabled="detailForm.regulationTestPlan ? false : true"
            >
              <el-input
                v-model.trim="detailForm.regulationTestPlan"
                style="width: 55%"
                placeholder="仅支持pdf、excel格式的文件"
                disabled
                clearable
              ></el-input>
            </el-tooltip>
          </el-form-item>
        </el-col>
      </el-row>
      <el-row type="flex">
        <el-col :span="12">
          <el-form-item label="一次调频测试报告:" size="mini">
            <el-upload
              ref="upload"
              action="#"
              class="upload-demo"
              :on-change="onChange3"
              :before-upload="beforeUpload"
              multiple
              :limit="5"
              :on-exceed="handleExceed"
              :file-list="fileList3"
              :http-request="uploadFile"
              :auto-upload="false"
              :show-file-list="false"
            >
              <div>
                <el-button size="mini">选择文件</el-button>
              </div>
            </el-upload>
            <el-tooltip
              class="item"
              effect="dark"
              :content="detailForm.regulationTestReport"
              placement="top"
              :disabled="detailForm.regulationTestReport ? false : true"
            >
              <el-input
                v-model.trim="detailForm.regulationTestReport"
                style="width: 55%"
                placeholder="仅支持pdf、excel格式的文件"
                disabled
                clearable
              ></el-input>
            </el-tooltip>
          </el-form-item>
        </el-col>
        <el-col :span="12">
          <el-form-item label="惯量响应方案:" size="mini">
            <el-upload
              ref="upload"
              action="#"
              class="upload-demo"
              :on-change="onChange4"
              :before-upload="beforeUpload"
              multiple
              :limit="5"
              :on-exceed="handleExceed"
              :file-list="fileList4"
              :http-request="uploadFile"
              :auto-upload="false"
              :show-file-list="false"
            >
              <div>
                <el-button size="mini">选择文件</el-button>
              </div>
            </el-upload>
            <el-tooltip
              class="item"
              effect="dark"
              :content="detailForm.responsePlan"
              placement="top"
              :disabled="detailForm.responsePlan ? false : true"
            >
              <el-input
                v-model.trim="detailForm.responsePlan"
                style="width: 55%"
                placeholder="仅支持pdf、excel格式的文件"
                disabled
                clearable
              ></el-input>
            </el-tooltip>
          </el-form-item>
        </el-col>
      </el-row>
      <el-row> -->
      <!-- <el-col :span="12">
          <el-form-item label="惯量响应报告:" size="mini">
            <el-upload
              ref="upload"
              action="#"
              class="upload-demo"
              :on-change="onChange5"
              :before-upload="beforeUpload"
              multiple
              :limit="5"
              :on-exceed="handleExceed"
              :file-list="fileList5"
              :http-request="uploadFile"
              :auto-upload="false"
              :show-file-list="false"
            >
              <div>
                <el-button size="mini">选择文件</el-button>
              </div>
            </el-upload>
            <el-tooltip
              class="item"
              effect="dark"
              :content="detailForm.responseReport"
              placement="top"
              :disabled="detailForm.responseReport ? false : true"
            >
              <el-input
                v-model.trim="detailForm.responseReport"
                style="width: 55%"
                placeholder="仅支持pdf、excel格式的文件"
                disabled
                clearable
              ></el-input>
            </el-tooltip>
          </el-form-item>
        </el-col>
      </el-row> -->
      <!-- <h5 class="titleText">一次调频功能及惯量响应建设情况</h5> -->
      <!-- <el-row type="flex">
        <el-col :span="6"> -->
      <!-- 是否已投入 -->
      <!-- <el-form-item label="是否已投入:" size="mini" prop="isRegulation">
            <el-select
              v-model="detailForm.isRegulation"
              size="mini"
              placeholder="请选择"
              @change="isRegulationChange"
            >
              <el-option
                v-for="item in isYes"
                :key="item.value"
                :label="item.label"
                :value="item.value"
              >
              </el-option>
            </el-select>
          </el-form-item>
        </el-col> -->
      <!-- <el-col :span="6">
          <el-form-item label="投入时间:" size="mini">
            <el-date-picker
              v-model="detailForm.regulationTime"
              type="datetime"
              placeholder="选择日期"
              :value-format="'yyyy-MM-dd HH:mm:ss'"
            >
            </el-date-picker>
          </el-form-item>
        </el-col> -->
      <!-- <el-col :span="6">
          <el-form-item label="未按期投入原因:" size="mini">
            <el-input
              v-model.trim="detailForm.unRegulateReason"
              autocomplete="off"
              size="mini"
              maxlength="40"
              placeholder="输入未按期投入原因"
              clearable
            ></el-input>
          </el-form-item>
        </el-col>
        <el-col :span="6"> -->
      <!-- 上调/下调是否投入 -->
      <!-- <el-form-item label="上调/下调是否投入:" size="mini">
            <el-select
              v-model="detailForm.adjustRegulationCode"
              size="mini"
              placeholder="请选择"
              clearable
              :popper-append-to-body="false"
            >
              <el-option
                v-for="item in adjustRegulationLists.filter(
                  (item) => item.label !== '全部'
                )"
                :key="item.value"
                :label="item.label"
                :value="item.value"
              >
              </el-option>
            </el-select>
          </el-form-item>
        </el-col>
      </el-row>
      <el-row type="flex">
        <el-col :span="6"> -->
      <!-- 是否完成惯量响应测试 -->
      <!-- <el-form-item label="是否完成惯量响应测试:" size="mini">
            <el-select
              v-model="detailForm.isResponse"
              size="mini"
              placeholder="请选择"
              clearable
            >
              <el-option
                v-for="item in isYes"
                :key="item.value"
                :label="item.label"
                :value="item.value"
              >
              </el-option>
            </el-select>
          </el-form-item>
        </el-col>
        <el-col :span="6">
          <el-form-item label="试验单位:" size="mini">
            <SelectAdd
              :labelslist="queryUnitList"
              label="testingUnitName"
              ref="testingUnit"
              val="testingUnitId"
              :formVla="detailForm.testingUnitId"
              :api="getInsertTestingUnitInfo"
              query="testingUnitId"
              order="试验单位"
              @getQueryStationList="getQueryTestingUnitList"
              :delApi="deleteTestingUnitInfo"
            ></SelectAdd> -->
      <!-- <el-select
              v-model="detailForm.testingUnitCode"
              size="mini"
              placeholder="请选择"
            >
              <el-option
                v-for="item in isYes"
                :key="item.value"
                :label="item.label"
                :value="item.value"
              >
              </el-option>
            </el-select> -->
      <!-- <el-input
              v-model.trim="detailForm.testingUnitName"
              autocomplete="off"
              size="mini"
              maxlength="40"
              placeholder="输入试验单位"
              clearable
            ></el-input> -->
      <!-- </el-form-item>
        </el-col>
      </el-row> -->
      <!-- 一次调频值明细及功能要求(功能未投入的场站留空) -->
      <!-- <h5 class="titleText">一次调频值明细及功能要求(功能未投入的场站留空)</h5> -->
      <!-- <el-row type="flex">
        <el-col :span="6">
          <el-form-item label="死区:" size="mini" prop="deadZone">
            <span style="margin-right: 5px; font-size: 18px">±</span>
            <el-input
              v-model.trim="detailForm.deadZone"
              autocomplete="off"
              type="number"
              size="mini"
              placeholder="输入死区值"
              oninput="value= value.length>40?value.slice(0,40):value"
              style="width: calc(100% - 42px)"
              clearable
              :disabled="detailForm.isRegulation === '0'"
            ></el-input>
            <span class="unitClass">Hz</span>
          </el-form-item>
        </el-col>
        <el-col :span="6">
          <el-form-item label="调差系数:" size="mini" prop="adjustRatio">
            <el-input
              v-model.trim="detailForm.adjustRatio"
              autocomplete="off"
              type="number"
              size="mini"
              oninput="value= value.length>40?value.slice(0,40):value"
              placeholder="输入调差系数"
              style="width: calc(100% - 28px)"
              clearable
              :disabled="detailForm.isRegulation === '0'"
            ></el-input>
            <span class="unitClass">%</span>
          </el-form-item>
        </el-col>
        <el-col :span="6">
          <el-form-item
            label="启动功率门槛:"
            size="mini"
            prop="startingPowerThreshold"
          >
            <span style="font-size: 18px">&nbsp;&nbsp;&nbsp;</span>
            <el-input
              v-model.trim="detailForm.startingPowerThreshold"
              autocomplete="off"
              type="number"
              size="mini"
              oninput="value= value.length>40?value.slice(0,40):value"
              placeholder="输入启动功率门槛"
              style="width: calc(100% - 42px)"
              clearable
              :disabled="detailForm.isRegulation === '0'"
            ></el-input>
            <span class="unitClass">MW</span>
          </el-form-item>
        </el-col>
        <el-col :span="6">
          <el-form-item label="下调限幅:" size="mini" prop="lowerLimit">
            <span style="font-size: 18px">&nbsp;&nbsp;&nbsp;</span>
            <el-input
              v-model.trim="detailForm.lowerLimit"
              autocomplete="off"
              type="number"
              size="mini"
              oninput="value= value.length>40?value.slice(0,40):value"
              placeholder="输入下调限幅"
              style="width: calc(100% - 42px)"
              clearable
              :disabled="detailForm.isRegulation === '0'"
            ></el-input>
            <span class="unitClass">MW</span>
          </el-form-item>
        </el-col>
      </el-row> -->
      <!-- <el-row type="flex">
        <el-col :span="6">
          <el-form-item
            label="功率调节偏差:"
            size="mini"
            prop="powerAdjustDeviation"
          >
            <span style="font-size: 18px">&nbsp;&nbsp;&nbsp;</span>
            <el-input
              v-model.trim="detailForm.powerAdjustDeviation"
              autocomplete="off"
              type="number"
              size="mini"
              placeholder="输入功率调节偏差"
              oninput="value= value.length>40?value.slice(0,40):value"
              style="width: calc(100% - 42px)"
              clearable
              :disabled="detailForm.isRegulation === '0'"
            ></el-input>
            <span class="unitClass">MW</span>
          </el-form-item>
        </el-col>
        <el-col :span="6">
          <el-form-item label="上调限幅:" size="mini" prop="upLimit">
            <el-input
              v-model.trim="detailForm.upLimit"
              autocomplete="off"
              type="number"
              size="mini"
              oninput="value= value.length>40?value.slice(0,40):value"
              placeholder="输入上调限幅"
              style="width: calc(100% - 30px)"
              clearable
              :disabled="detailForm.isRegulation === '0'"
            ></el-input>
            <span class="unitClass">MW</span>
          </el-form-item>
        </el-col>
        <el-col :span="6">
          <el-form-item label="启动时间:" size="mini" prop="startTime">
            <span style="margin-right: 5px; font-size: 18px">≤</span>
            <el-input
              v-model.trim="detailForm.startTime"
              autocomplete="off"
              type="number"
              size="mini"
              oninput="value= value.length>40?value.slice(0,40):value"
              placeholder="输入启动时间"
              style="width: calc(100% - 42px)"
              clearable
              :disabled="detailForm.isRegulation === '0'"
            ></el-input>
            <span style="font-size: 14px; margin-left: 5px">s</span>
          </el-form-item>
        </el-col>
        <el-col :span="6">
          <el-form-item label="响应时间:" size="mini" prop="responseTime">
            <span style="margin-right: 5px; font-size: 18px">≤</span>
            <el-input
              v-model.trim="detailForm.responseTime"
              autocomplete="off"
              type="number"
              size="mini"
              oninput="value= value.length>40?value.slice(0,40):value"
              placeholder="输入响应时间"
              style="width: calc(100% - 42px)"
              clearable
              :disabled="detailForm.isRegulation === '0'"
            ></el-input>
            <span style="font-size: 14px; margin-left: 5px">s</span>
          </el-form-item>
        </el-col>
      </el-row> -->
      <!-- <el-row type="flex">
        <el-col :span="6">
          <el-form-item label="调节时间:" size="mini" prop="adjustTime">
            <span style="margin-right: 5px; font-size: 18px">≤</span>
            <el-input
              v-model.trim="detailForm.adjustTime"
              autocomplete="off"
              type="number"
              size="mini"
              placeholder="输入调节时间"
              oninput="value= value.length>40?value.slice(0,40):value"
              style="width: calc(100% - 42px)"
              clearable
              :disabled="detailForm.isRegulation === '0'"
            ></el-input>
            <span style="font-size: 14px; margin-left: 5px">s</span>
          </el-form-item>
        </el-col>
        <el-col :span="6">
          <el-form-item
            label="一次调频投退功能:"
            size="mini"
            prop="onOffFunction"
          >
            <el-select
              v-model="detailForm.onOffFunction"
              size="mini"
              placeholder="请选择"
              clearable
              style="width: calc(100% - 28px)"
              :disabled="detailForm.isRegulation === '0'"
            >
              <el-option
                v-for="item in isEnable"
                :key="item.value"
                :label="item.label"
                :value="item.value"
              >
              </el-option>
            </el-select>
          </el-form-item>
        </el-col>
        <el-col :span="6">
          <el-form-item
            label="一次调频上调功能:"
            size="mini"
            prop="isUpFunction"
          >
            <span style="font-size: 18px">&nbsp;&nbsp;&nbsp;</span>
            <el-select
              v-model="detailForm.isUpFunction"
              size="mini"
              placeholder="请选择"
              clearable
              style="width: calc(100% - 42px)"
              :disabled="detailForm.isRegulation === '0'"
              :popper-append-to-body="false"
            >
              <el-option
                v-for="item in isEnable"
                :key="item.value"
                :label="item.label"
                :value="item.value"
              >
              </el-option>
            </el-select>
          </el-form-item>
        </el-col>
        <el-col :span="6">
          <el-form-item
            label="一次调频下调功能:"
            size="mini"
            prop="isLowerFunction"
          >
            <span style="font-size: 18px">&nbsp;&nbsp;&nbsp;</span>
            <el-select
              v-model="detailForm.isLowerFunction"
              size="mini"
              placeholder="请选择"
              clearable
              style="width: calc(100% - 42px)"
              :disabled="detailForm.isRegulation === '0'"
              :popper-append-to-body="false"
            >
              <el-option
                v-for="item in isEnable"
                :key="item.value"
                :label="item.label"
                :value="item.value"
              >
              </el-option>
            </el-select>
          </el-form-item>
        </el-col>
      </el-row> -->
      <!-- <el-row type="flex">
        <el-col :span="6">
          <el-form-item
            label="惯量响应功能:"
            size="mini"
            prop="isResponseFunction"
          >
            <span style="font-size: 18px">&nbsp;&nbsp;&nbsp;</span>
            <el-select
              v-model="detailForm.isResponseFunction"
              size="mini"
              placeholder="请选择"
              clearable
              style="width: calc(100% - 42px)"
              :disabled="detailForm.isRegulation === '0'"
            >
              <el-option
                v-for="item in isResponseList"
                :key="item.value"
                :label="item.label"
                :value="item.value"
              >
              </el-option>
            </el-select>
          </el-form-item> </el-col
        ><el-col :span="6">
          <el-form-item
            label="一次调频与AGC协调控制:"
            size="mini"
            prop="agcControl"
          >
            <el-select
              v-model="detailForm.agcControl"
              size="mini"
              placeholder="请选择"
              clearable
              style="width: calc(100% - 28px)"
              :disabled="detailForm.isRegulation === '0'"
            >
              <el-option
                v-for="item in agcControlList"
                :key="item.value"
                :label="item.label"
                :value="item.value"
              >
              </el-option>
            </el-select>
          </el-form-item>
        </el-col>
        <el-col :span="6">
          <el-form-item
            label="最大上下调节能力:"
            size="mini"
            prop="maxUpdownPower"
          >
            <span style="font-size: 18px">&nbsp;&nbsp;&nbsp;</span>
            <el-input
              v-model.trim="detailForm.maxUpdownPower"
              autocomplete="off"
              type="number"
              size="mini"
              placeholder="输入最大上下调节能力"
              oninput="value= value.length>40?value.slice(0,40):value"
              style="width: calc(100% - 42px)"
              clearable
              :disabled="detailForm.isRegulation === '0'"
            ></el-input>
            <span class="unitClass">MW</span>
          </el-form-item>
        </el-col>
        <el-col :span="6">
          <el-form-item label="每分钟调节速率:" size="mini" prop="adjustSpeed">
            <span style="font-size: 18px">&nbsp;&nbsp;&nbsp;</span>
            <el-input
              v-model.trim="detailForm.adjustSpeed"
              autocomplete="off"
              type="number"
              size="mini"
              placeholder="输入每分钟调节速率"
              oninput="value= value.length>40?value.slice(0,40):value"
              style="width: calc(100% - 42px)"
              clearable
              :disabled="detailForm.isRegulation === '0'"
            ></el-input>
            <span class="unitClass">MW</span>
          </el-form-item>
        </el-col>
      </el-row> -->
      <!-- <el-row type="flex">
        <el-col :span="6">
          <el-form-item
            label="最大调节能力持续响应时间:"
            size="mini"
            prop="maxUpdownPowerDuration"
            label-width="160px"
          >
            <span style="font-size: 18px">&nbsp;&nbsp;&nbsp;</span>
            <el-input
              v-model.trim="detailForm.maxUpdownPowerDuration"
              autocomplete="off"
              type="number"
              size="mini"
              placeholder="输入最大调节能力持续响应时间"
              oninput="value= value.length>40?value.slice(0,40):value"
              style="width: calc(100% - 42px)"
              clearable
              :disabled="detailForm.isRegulation === '0'"
            ></el-input>
            <span class="unitClass">s</span>
          </el-form-item>
        </el-col>
      </el-row> -->
    </el-form>
  </div>
</template>

<script>
import TestResultQueryEdit from './testResultQueryEdit.js'
export default TestResultQueryEdit
</script>

<style lang="scss" scoped>
.titleText {
  margin-bottom: 10px;
  color: rgb(95, 124, 206);
}

// .el-form-item--mini {
//   width: 90%;
// }
::v-deep.el-form-item--mini .el-form-item__label {
  font-size: 12px !important;
}

.upload-demo {
  display: inline-block;
}

.unitClass {
  font-size: 12px !important;
  margin-left: 5px;
}

::v-deep .el-select-dropdown {
  position: absolute !important;
  top: 80% !important;
  left: 0px !important;
}
</style>
